/* 1. 引入 vue-router */
import Vue from "vue";
import VueRouter from "vue-router";
let originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function(location){
    return originalPush.call(this,location).catch(err=>{})
}
Vue.use(VueRouter);
const routes = [
  {
    path: "/",
    component: () => import("@/components/HelloWorld"),
  },
];
let router = new VueRouter({
  routes,
});
export default router;